
package com.cmc.dao;

import java.util.List;

import com.cmc.dao.Dao;
import com.cmc.model.Nation;

public interface NationDao extends Dao {

    /**
     * Retrieves all of the nations
     */
    public List getNations(Nation nation);

    /**
     * Gets nation's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the nation's id
     * @return nation populated nation object
     */
    public Nation getNation(final Long id);

    /**
     * Saves a nation's information
     * @param nation the object to be saved
     */    
    public void saveNation(Nation nation);

    /**
     * Removes a nation from the database by id
     * @param id the nation's id
     */
    public void removeNation(final Long id);
}

